import Cookies from 'js-cookie'

const adminToken="adminToken"
const userName="userName"
const userImg="userImg"

export function setToken(value){
	Cookies.set(adminToken,value,{ expires: 1, path: '' });
}
export function getToken(){
	return Cookies.get(adminToken);
}
export function removeToken(){
	return Cookies.remove(adminToken);
}

export function setUserName(value){
	Cookies.set(userName,value,{ expires: 1, path: '' });
}
export function getUserName(){
	return Cookies.get(userName);
}
export function removeUserName(){
	return Cookies.remove(userName);
}

export function setUserImg(value){
	Cookies.set(userImg,value,{ expires: 1, path: '' });
}
export function getUserImg(){
	return Cookies.get(userImg);
}
export function removeUserImg(){
	return Cookies.remove(userImg);
}